//// List ////
def aList = []
println aList.getClass()

def anotherList = ['a','b', 'c']

def list = [10, 20, 30] + [40, 50]

list  <<  60

list = list - [20, 30, 40]

list  -= [20,30,40]

list.each { println it }


//// Set ////
def aSet = [1,2,3] as Set
println aSet.class

TreeSet anotherSet = [1,2,3]
println anotherSet.class


aSet << 4
aSet << 3
println aSet



//// Map ////
def aMap = [:]

def tool = [version:'2.8', name:'Gradle', platform:'all']

println tool.name
println tool["version"]
println tool.get("platform")

tool.version = "2.9"
tool["releaseDate"] = "2015-11-17"
tool.put("platform", "ALL")

println tool

